﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace kairiseiMAParser
{
    class Reader
    {
        private string[] str;
        private int offset = 0;

        public Reader(string[] str)
        {
            this.str = str;
        }

        public string NextString()
        {
            if (offset >= str.Length)
            {
                return null;
            }
            else
            {
                return str[offset++];
            }
        }

        public int NextInt32()
        {
            string tmpe = null;
            if (offset < str.Length)
            {
                tmpe = str[offset++];
            }
            if (tmpe == "")
            {
                return 0;
            }
            else
            {
                return Convert.ToInt32(tmpe);
            }
        }
    }
}
